package com.kpmg.datalake.accountcheck.vo;

import java.util.List;

/**
 * @author Echo
 * @create 2018-05-24
 * @desc
 */
public class AccountRowVO {

    //分录号
    private String flowNo;

    // 本方名称
    private String ownerName;

    // 对方名称
    private String tradeName;

    // 科目类型
    private String courseType;

    // 记账金额
    private String bookMoney;

    // 抵消金额
    private String offsetMoney;

    // 差异金额
    private String diffMoney;

    // 抵消类型
    private String offsetType;

    // 备注
    private String remark;

    // 记账总额
    private String bookTotal;

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }
    // 抵消总额
    private String offsetTotal;

    // 差异总额
    private String diffTotal;

    private List<AccountRowVO> tradeList;
    
    private List<AccountRowVO> hostList;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    // 是否可删除
    private boolean deleteFlag;

    // 匹配规则名称
    private String mappingName;

    public String getOwnerName() {
        return ownerName;
    }


    public String getTradeName() {
        return tradeName;
    }

    public String getCourseType() {
        return courseType;
    }


    public void setBookMoney(String bookMoney) {
        this.bookMoney = moneyFormat(bookMoney);
    }

    public void setTradeName(String tradeName) {
        this.tradeName = tradeName;
    }
    public String getOffsetMoney() {
        return offsetMoney;
    }

    public void setOffsetMoney(String offsetMoney) {
        this.offsetMoney = moneyFormat(offsetMoney);
    }

    public String getDiffMoney() {
        return diffMoney;
    }

    public void setDiffMoney(String diffMoney) {
        this.diffMoney = moneyFormat(diffMoney);
    }

    public String getOffsetType() {
        return offsetType;
    }

    public void setOffsetType(String offsetType) {
        this.offsetType = offsetType;
    }

    public boolean isDeleteFlag() {
        return deleteFlag;
    }
    
    public void setCourseType(String courseType) {
        this.courseType = courseType;
    }

    public String getBookMoney() {
        return bookMoney;
    }
    public void setDeleteFlag(boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public List<AccountRowVO> getTradeList() {
        return tradeList;
    }

    public void setTradeList(List<AccountRowVO> tradeList) {
        this.tradeList = tradeList;
    }

    public String getFlowNo() {
        return flowNo;
    }

    public void setFlowNo(String flowNo) {
        this.flowNo = flowNo;
    }

    public String getBookTotal() {
        return bookTotal;
    }

    public void setBookTotal(String bookTotal) {
        this.bookTotal = moneyFormat(bookTotal);
    }

    public String getOffsetTotal() {
        return offsetTotal;
    }

    public void setOffsetTotal(String offsetTotal) {
        this.offsetTotal = moneyFormat(offsetTotal);
    }

    public String getDiffTotal() {
        return diffTotal;
    }

    public void setDiffTotal(String diffTotal) {
        this.diffTotal = moneyFormat(diffTotal);
    }

    public List<AccountRowVO> getHostList() {
		return hostList;
	}

	public void setHostList(List<AccountRowVO> hostList) {
		this.hostList = hostList;
	}

	private static String moneyFormat(String number) {
        if ("0".equals(number)) {
            return "0.00";
        }
        return number;
    }

    public String getMappingName() {
        return mappingName;
    }

    public void setMappingName(String mappingName) {
        this.mappingName = mappingName;
    }
}
